package org.extremengine.demo;

import java.awt.Graphics;

import org.extremengine.common.RigidBody;
import org.extremengine.common.Terrain;
import org.extremengine.common.Velocity;
import org.extremengine.shape.Circle;
import org.extremengine.shape.ParallelRectangle;
import org.extremengine.shape.UnlimitedLine;

public class PanelRolling extends BasePanelWorld {
	RigidBody ball;
//	RigidBody box;

	public PanelRolling(DemoCallback demoCallback) {
		super(demoCallback);
	}

	@Override
	public void paint(Graphics g) {
		super.paint(g);
		if (!world.isRunning()) {
			drawRigidBody(g, ball);
//			drawRigidBody(g, box);
		}
	}

	@Override
	public void initDemoWorld() {
		super.initDemoWorld();
		
//		world.createWall(25, 0, 0.5, UnlimitedLine.);
		
		ball = world.createRigidBody(new Object(), 0, 0.5, 10, new Circle(35, 4, 2));
		ball.setV(new Velocity(45, 0));
		
//		box = world.createRigidBody(new Object(), 0, 0.5, 100, new ParallelRectangle(70, 72, 0, 20));
//		box.setMovable(false);
	}

}
